export interface resData {
    code: string,
    message: string
}

export interface publicType {
    avatar: string | null,
    content: string
    imageList: string
    name: string | null
    times: string
    username: string,
    isPublish?: string
}

export interface goodsData extends publicType {
    id: string
}

export interface goodsFormType extends publicType {
    category: string
}

export interface goodsListType extends resData {
    data: goodsData[]
}

export interface commentDataType {
    times: Date,
    goodsId: string,
    username: string,
    comment: string,
    name: string | null,
    avatar: string | null
}
export interface commentListType {
    code: string,
    message: string,
    data: commentDataType[]
}

interface publicEdit {
    category: string,
    content: string,
}

export interface editDataType extends resData {
    data: {
        category: string,
        content: string,
        imageList: string
    }
}

export interface editGoodsFormType extends publicEdit {
    id: string,
    files: string[],
    deleteList: string[],
    imageList: string[]
}

export interface addGoodsType {
    username: string,
    times: string,
    content: string,
    category: string,
    files: string[],
    imageList: string[],
}

